package com.cipe.cmrs.model;

import java.util.List;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * <p>
 * Pojo mapping TABLE dbo.UserType
 * </p>
 * 
 * <p>
 * Generated at Sat Dec 03 14:39:51 PKT 2011
 * </p>
 * 
 * @author Incepio
 * 
 */
@Entity
@Table(name = "usertype")
@SuppressWarnings("serial")
@NamedQueries({ @NamedQuery(name = "findByUserType", query = " FROM Usertype ut where ut.displayName = ?") })
public class Usertype extends BaseAuditEntity {

	/**
	 * Attribute displayName.
	 */
	@Basic
	@Column(name = "usertypename", length = 100)
	private String		displayName;
	/**
	 * List of User
	 */
	@OneToMany(mappedBy = "usertype")
	private List<User>	users	= null;

	/**
	 * @return displayName
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * @param displayName
	 *            new value for displayName
	 */
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	/**
	 * @return the users
	 */
	public List<User> getUsers() {
		return users;
	}

	/**
	 * @param users the users to set
	 */
	public void setUsers(List<User> users) {
		this.users = users;
	}
}